package com.sumainfor.pc.market.fallback;

import com.sumainfor.common.exception.TCException;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.market.feign.BaseFeignGmio;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/1/12 16:02
 * @Description:
 */
@Component
public class FeignGmioFallback implements BaseFeignGmio {

    @Override
    public JsonResult getHousingOwList(Map<String, Object> params, Pager pager) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult UpdateHousingOwGiveUp(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult AddHousingOwInfo(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getHouOwcontactList(Map<String, Object> params, Pager pager) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getHouOwmemberList(Map<String, Object> params, Pager pager) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getHouOwPayeeList(Map<String, Object> params, Pager pager) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult AddBillOwner(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getOwnerBillMap(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getKeepAvgRangeMap(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getTrenantBill(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getManagerGmioCount(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getManagerGmioCountList(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public Map<String, Object> getComFieldData(Map<String, Object> params) {
        throw new TCException("运营部服务异常");
    }

    @Override
    public List<Map<String, Object>> getComplaint(String year) {
        throw new TCException("运营部服务异常");
    }

    @Override
    public JsonResult selectRates(Map<String, Object> params) {
        return JsonResult.error("运营部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult createTempOrder(Map<String, Object> params) {
        return JsonResult.error("运营部服务繁忙....");
    }

    @Override
    public JsonResult createOrderMain(Map<String, Object> params) {
        return JsonResult.error("运营部服务繁忙....");
    }

    @Override
    public JsonResult getBackOrder(String witId) {
        return JsonResult.error("运营部服务繁忙....");
    }

    @Override
    public JsonResult searchForGmio(String keyWord, Integer roleId) {
        return JsonResult.error("运营部服务器繁忙...");
    }

    @Override
    public List<Map<String, Object>> getPaIdTenantBill(Map<String, Object> params) {
        return new ArrayList<>();
    }

    @Override
    public Map<String, Object> getRoomBill(Map<String, Object> params) {
        return new HashMap<>();
    }

//    /**
//     * zc 运营部搜索
//     * @param keyWord
//     * @param roleId
//     * @return
//     */
//    @Override
//    public JsonResult searchForGmio(String keyWord, Integer roleId) {
//        return JsonResult.error("运营部服务器繁忙...");
//    }
}
